package pl.enigmatic.math.graph;

import java.util.List;


public class SelfBasedTree<T extends SelfBasedTree<T>> extends NamedBaseTree<T, T> {

	public SelfBasedTree(final List<T> baseChildren) {
		super(null, baseChildren);
	}

	public SelfBasedTree() {
		super(null);
	}

	@SuppressWarnings("unchecked")
	@Override
	public T getBase() {
		return (T) this;
	}

	public static class SimpleImpl extends SelfBasedTree<SimpleImpl> {}

}
